package com.zyh.mapper;

import com.zyh.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface UserMapper {
    void insert(User user);
    void delete(int id);
    void update(User user);
    User selectById(int id);
    List<User> selectAll();
    List<User> selectBySchool(int id);
    User selectByNameAndPassword(@Param("name") String name,@Param("password") String password);
}
